#include "mymainwindow.h"
#include "./ui_mymainwindow.h"
#include <QPainter>
myMainWindow::myMainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::myMainWindow)
{
    ui->setupUi(this);

    //窗口标题
    this->setWindowTitle("翻金币");
    //设置窗口icon
    this->setWindowIcon(QIcon(":/res/Coin0001.png"));
    //设置窗口大小
    this->setFixedSize(320,588);
}

myMainWindow::~myMainWindow()
{
    delete ui;
}

void myMainWindow::paintEvent(QPaintEvent *event)
{
    //绘制背景图片
    QPainter painter(this);

    QPixmap pix(":/res/MenuSceneBg.png");

    painter.drawPixmap(0,0,this->width(),this->height(),pix);
}

